<?php
//退出系统并删除登录时设置的cookie
if(isset($_GET['ex'])){
    setcookie('token',$token,time()-1);
   if(isset($_SESSION[$id])){
       //echo ($_SESSION[$id]);
       header("Location:?c=index&a=index");
       unset($_SESSION[$id]);
   }elseif (isset($_SESSION[$nname])){
       //echo ($_SESSION[$nname]);
       header("Location:?c=index&a=index");
       unset($_SESSION[$nname]);
   }
}
?>